<!DOCTYPE html>
<html >
<head >
    <title>上海妇联</title>
    <link href='/stylesheets/stylesheet1.css' type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/javascripts/jquery-1.11.1.min.js" ></script>
    <script>

        function login() {

            var username = $("#username").val();
            var password = $("#password").val();
            alert(username + password);
            // location.href = "/login/" + username;
            $.get("/login/" + username + "/" + password, function (msg) {
               console.log(msg.msg);
                if (!msg.state) {
                    alert(decodeURI(msg.msg));
                }
                else
                location.href='/home';
            });
        }


    </script>

    <style type="text/css" media="all">
        BODY
        {
            background-image: url();
            background-color: #be006e;
        }
        .login
        {
            background-image: url(/images/login.gif);
            width: 804px;
            height: 523px;
        }
    </style>
    <title>登录</title>
</head>
<body scroll="no">
<form >
    <table width="100%" border="0" cellpadding="0" cellspacing="0" background='/images/l_01.jpg'>
        <tr>
            <td height="597">
                <table width="920" border="0" align="center" cellpadding="0" cellspacing="0" background='/images/l_03_1.jpg'>
                    <tr>
                        <td width="404" height="331">
                            &nbsp;
                        </td>
                        <td width="516">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td height="176">
                            &nbsp;
                        </td>
                        <td valign="top">
                            <table width="100" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="38">
                                        <label>
                                            <input type="text"  id="username"  value="" />
                                        </label>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="38">
                                        <input type="password" id="password"  />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="38">
                                        <label>
                                            <input type="button" onclick="login()" value=" 登陆" />
                                        </label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="117" colspan="2">
                            <table align="center">
                                <tbody>
                                <tr>
                                    <td valign="bottom" class="dataday">
                                        <img style="width: 28px; height: 28px" alt="" src='/images/logo01.gif'>
                                    </td>
                                    <td>
                                        <span style="color: #ffffff">上海市妇联 版权所有© 2009</span>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
</body>
</html>


